<div>
    <div class="bg-white rounded-xl p-6 pb-4">
        <div class="text-lg">博客动态</div>
        @if(count($actions) == 0)
            <div class="text-center mt-10">
                <p class="text-base font-semibold text-indigo-600">暂无数据</p>
                <p class="mt-6 text-base leading-7 text-gray-600">作者暂时没有更新动态</p>
            </div>
        @endif
        <div class="mt-4">
            @foreach($actions as $action)
                <div class="border-0 pb-6 mb-6 border-b border-color-body-line">
                    <div class="flex">
                        <div class="w-10">
                            <img class="rounded-full" src="{{ @asset('/storage/' . $action['user']['avatar']) }}" alt="">
                        </div>
                        <div class="flex-grow ml-4">
                            <div class="text-base mb-1">
                                {{ $action['user']['name'] }}
                            </div>
                            <div class="leading-4 text-xs text-gray-500">
                                <span>{{ $action['created_at']->format('Y-m-d H:i') }}</span>
                                说：
                            </div>
                        </div>
                    </div>
                    <div class="mt-1 pl-14">
                        <div class="html">
                            {!! $action['content'] !!}
                        </div>
                    </div>
                </div>
            @endforeach
        </div>
        <div class="mt-3 mb-5 flex justify-center">
            {{ $actions->links() }}
        </div>
    </div>
</div>
